﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Po;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.Po.BuyVMs
{
    public partial class BuyTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Buy._BuyCode")]
        public ExcelPropety BuyCode_Excel = ExcelPropety.CreateProperty<Buy>(x => x.BuyCode);
        [Display(Name = "_Model._Buy._Supplier")]
        public ExcelPropety Supplier_Excel = ExcelPropety.CreateProperty<Buy>(x => x.SupplierId);
        [Display(Name = "_Model._Buy._InvoicesDate")]
        public ExcelPropety InvoicesDate_Excel = ExcelPropety.CreateProperty<Buy>(x => x.InvoicesDate, true);
        [Display(Name = "_Model._Buy._MakeUser")]
        public ExcelPropety MakeUser_Excel = ExcelPropety.CreateProperty<Buy>(x => x.MakeUserId);
        [Display(Name = "_Model._Buy._DeliveryDate")]
        public ExcelPropety DeliveryDate_Excel = ExcelPropety.CreateProperty<Buy>(x => x.DeliveryDate, true);
        [Display(Name = "_Model._Buy._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<Buy>(x => x.Remark);
        [Display(Name = "_Model._Buy._SettlementAccount")]
        public ExcelPropety SettlementAccount_Excel = ExcelPropety.CreateProperty<Buy>(x => x.SettlementAccountId);
        [Display(Name = "_Model._Buy._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<Buy>(x => x.Status);
        [Display(Name = "_Model._Buy._TotalPrice")]
        public ExcelPropety TotalPrice_Excel = ExcelPropety.CreateProperty<Buy>(x => x.TotalPrice);
        [Display(Name = "_Model._Buy._TotalPrice1")]
        public ExcelPropety TotalPrice1_Excel = ExcelPropety.CreateProperty<Buy>(x => x.TotalPrice1);
        [Display(Name = "_Model._Buy._TotalPrice2")]
        public ExcelPropety TotalPrice2_Excel = ExcelPropety.CreateProperty<Buy>(x => x.TotalPrice2);
        //[Display(Name = "_Model._Buy._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Buy>(x => x.CreateTime, true);
        //[Display(Name = "_Model._Buy._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Buy>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._Buy._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Buy>(x => x.CreateBy);
        //[Display(Name = "_Model._Buy._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Buy>(x => x.UpdateBy);
        //[Display(Name = "_Model._Buy._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Buy>(x => x.IsValid);
        //[Display(Name = "_Model._Buy._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<Buy>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class BuyImportVM : BaseImportVM<BuyTemplateVM, Buy>
    {
            //import

    }

}